package com.hongye.app.model;


import java.util.List;

import com.jfinal.plugin.activerecord.Model;

public class OrderGoodsModel extends Model<OrderGoodsModel>{
	
	private static final long serialVersionUID = -4422317316458833736L;
	
	public static final OrderGoodsModel dao=new OrderGoodsModel();
	
	
	/**
	 * 通过订单id获取订单商品信息 返回list
	 * @author liushaomin
	 * 2017年7月14日
	 * @param orderid
	 * @return
	 */
	public static List<OrderGoodsModel> getByOrderId(int orderid){
		String sql = "select * from order_goods where order_id = "+orderid+"";
		List<OrderGoodsModel> order_goods =  OrderGoodsModel.dao.find(sql);
		return order_goods;
	}
}
